package com.aliyun.heiyu.powermaster.server.rotary.utils;

/**
 * @Description uuid工具类
 * @Author shun.zhang
 * @Date 2019/11/29 10:07
 **/
public class UUIDUtil {
    /**
     * 生成不带-的UUID
     *
     * @return UUID
     */
    public static String getUUID() {
        // 返回用UUID
        String uuidResult = "";
        // 临时用UUID
        String uuidTemp = "";
        // 取得UUID存储到临时用UUID
        uuidTemp = java.util.UUID.randomUUID().toString();
        // 替换掉所有-字符
        uuidResult = uuidTemp.replaceAll("-", "");
        // 返回UUID
        return uuidResult;
    }
}

